module.exports = class extends think.Controller {
  __before() {}
  getParams() {
    return this.get();
  }
  getPost() {
    return this.post();
  }

  success(message) {
    return (this.body = {
      code: 200,
      message
    });
  }

  fail(message) {
    return (this.body = {
      code: 402,
      message
    });
  }
};
